_m_a_s_k Bitwise OR of masks that indicate the buffers to be cleared. The
four masks are GGGGLLLL____CCCCOOOOLLLLOOOORRRR____BBBBUUUUFFFFFFFFEEEERRRR____BBBBIIIITTTT, GGGGLLLL____DDDDEEEEPPPPTTTTHHHH____BBBBUUUUFFFFFFFFEEEERRRR____BBBBIIIITTTT,
GGGGLLLL____AAAACCCCCCCCUUUUMMMM____BBBBUUUUFFFFFFFFEEEERRRR____BBBBIIIITTTT, and GGGGLLLL____SSSSTTTTEEEENNNNCCCCIIIILLLL____BBBBUUUUFFFFFFFFEEEERRRR____BBBBIIIITTTT.
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
ffffggggllllCCCClllleeeeaaaarrrr sets the bitplane area of the window to values previously
selected by ffffggggllllCCCClllleeeeaaaarrrrCCCCoooolllloooorrrr, ffffggggllllCCCClllleeeeaaaarrrrIIIInnnnddddeeeexxxx, ffffggggllllCCCClllleeeeaaaarrrrDDDDeeeepppptttthhhh, ffffggggllllCCCClllleeeeaaaarrrrSSSStttteeeennnncccciiiillll,
and ffffggggllllCCCClllleeeeaaaarrrrAAAAccccccccuuuummmm. Multiple color buffers can be cleared simultaneously
by selecting more than one buffer at a time using ffffggggllllDDDDrrrraaaawwwwBBBBuuuuffffffffeeeerrrr.
The pixel ownership test, the scissor test, dithering, and the buffer
writemasks affect the operation of ffffggggllllCCCClllleeeeaaaarrrr. The scissor box bounds the
stenciling, texture mapping, and depth-buffering are ignored by ffffggggllllCCCClllleeeeaaaarrrr.
ffffggggllllCCCClllleeeeaaaarrrr takes a single argument that is the bitwise OR of several values
indicating which buffer is to be cleared.
The values are as follows:
GGGGLLLL____CCCCOOOOLLLLOOOORRRR____BBBBUUUUFFFFFFFFEEEERRRR____BBBBIIIITTTT Indicates the buffers currently enabled for
color writing.
GGGGLLLL____DDDDEEEEPPPPTTTTHHHH____BBBBUUUUFFFFFFFFEEEERRRR____BBBBIIIITTTT Indicates the depth buffer.
GGGGLLLL____AAAACCCCCCCCUUUUMMMM____BBBBUUUUFFFFFFFFEEEERRRR____BBBBIIIITTTT Indicates the accumulation buffer.
GGGGLLLL____SSSSTTTTEEEENNNNCCCCIIIILLLL____BBBBUUUUFFFFFFFFEEEERRRR____BBBBIIIITTTT Indicates the stencil buffer.
The value to which each buffer is cleared depends on the setting of the
clear value for that buffer.
NNNNOOOOTTTTEEEESSSS
If a buffer is not present, then a ffffggggllllCCCClllleeeeaaaarrrr directed at that buffer has
no effect.
EEEERRRRRRRROOOORRRRSSSS
GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____VVVVAAAALLLLUUUUEEEE is generated if any bit other than the four defined bits
is set in _m_a_s_k.
GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____OOOOPPPPEEEERRRRAAAATTTTIIIIOOOONNNN is generated if ffffggggllllCCCClllleeeeaaaarrrr is executed between the
execution of ffffggggllllBBBBeeeeggggiiiinnnn and the corresponding execution of ffffggggllllEEEEnnnndddd.